/**
 * @file STL_HttpTools.h
 * @author Derek Liu (yjkhtddx@sina.com)
 * @brief 
 * @version 0.1
 * @date 2021-02-19
 * 
 * @copyright Copyright Sci-Tech Laboratories (c) 2021
 * 
 */

#ifndef __STL_HTTP_DEF_H__
#define __STL_HTTP_DEF_H__

#include <string>
#include <map>
#include <vector>

namespace STL
{
    class STL_HttpTools
    {
    public:
        static std::string getHttpContentType(std::string path);
        static std::string getHttpCodePhrase(int statusCode);
        static STL_HttpTools *getInstance();

    public:
        STL_HttpTools();
        ~STL_HttpTools() = default;

    public:
        std::map<int, std::string> m_StatusCode_table;
        std::map<std::string, std::string> m_ContentType_table;
    };

}

#endif //__STL_HTTP_DEF_H__